


//TODO a(33)
function a33(module, exports, a) {
    function i() {
    }

    var s = a(23), r = a(21), n = a(3);
    n.extend(i, s);
    var o = {
        init: function () {
            this.playerData = this.manager.playerData
        }, getUserInfo: function (e) {
            var t = r.PROTOCAL + r.HOST_NAME.PLAYER_PC_LETV_COM + "/mms/userinfo", a = this;
            this.manager.log.pushLog("getUserInfo: "), n.getJSON({
                url: t,
                log: this.manager.log,
                data: {region: this.manager.listener.get(r.REGION)},
                maxCount: 1,
                success: function (t) {
                    a.manager.log.pushLog("getUserInfo Suc: " + n.JSONTOStr(t));
                    var i = t.msgs;
                    i ? a.manager.listener.set(r.USER_INFO, a.formatUserInfo(i)) : a.manager.listener.set(r.USER_INFO, null), e && e()
                },
                fail: function () {
                    a.manager.log.pushLog("getUserInfo Fail"), a.info = null, e && e()
                }
            })
        }, formatUserInfo: function (e) {
            if (!e || !e.ssouid)return null;
            e.isvip = 0 != e.vipinfo.length, e.vipInfoObj = {};
            for (var t = 0, a = e.vipinfo.length; t < a; t++)e.vipInfoObj[e.vipinfo[t].productId] = e.vipinfo[t];
            return e
        }
    };
    n.merge(i.prototype, o), module.exports = i
}

